//
//  UserEntity.h
//  HLX
//
//  Created by john on 9/10/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "SQLitePersistentObject.h"


@interface UserEntity : SQLitePersistentObject {
    //用户id
	NSString* _uid;
    //用户KEY
    NSString* _encryptkeys;
    //用户名
	NSString* _name;
    //手机
    NSString* _phone;
	NSString* _email;
	NSString* _password;
    //昵称
    NSString* _zname;
    //头像
    NSString* _pic;
    //用户类型
    NSString* _usertype;
    //用户积分
    NSString* _integral;
    //个性签名
    NSString* _signature;
    //用户等级
    NSString* _level;
    //用户beans
    NSString* _beans;
}

+ (id)createWithDictionary:(NSDictionary*)dictionary andPassword:(NSString*)pass;
+ (NSArray*)findAllUserAccounts;
+ (UserEntity*)findUserAccountByName:(NSString*)name;

- (void)saveUserAccount;

@property (nonatomic, copy) NSString* uid;
@property (nonatomic, copy) NSString* encryptkeys;
@property (nonatomic, copy) NSString* name;
@property (nonatomic, copy) NSString* phone;
@property (nonatomic, copy) NSString* signature;
@property (nonatomic, copy) NSString* email;
@property (nonatomic, copy) NSString* password;
@property (nonatomic, copy) NSString* zname;
@property (nonatomic, copy) NSString* pic;
@property (nonatomic, copy) NSString* usertype;
@property (nonatomic, copy) NSString* integral;
@property (nonatomic, copy) NSString* level;
@property (nonatomic, copy) NSString* beans;
@end

